package com.test;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.*;
import android.view.*;
import android.view.View.OnClickListener;

import com.lib.*;
public class Main extends Activity {
	private Button btn_go_sub;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);        
    }
    
    public void goSub_click(View v){
    	setContentView(R.layout.sub);
    	
    }
    
    public void goMain_click(View v){
    	setContentView(R.layout.main);
    }
    
    public void btn_click_go(View v){
    	
    	setContentView(R.layout.readio);
    	
    }
    
    public void btn_click_run_Now(View v){
    	runGoogle(v);
    	//ntent intent = new Intent("com.test.Now");
    	//startActivity(intent);
    	//intent.setClass(this, Now.class);
    	//startActivityForResult(intent,1);
    }
    
    public void runGoogle(View v){
    	Intent intent = new Intent(Intent.ACTION_VIEW);
    	intent.setData(Uri.parse("http://www.google.com"));
    	startActivity(intent);
    }
        
}